<?php
namespace app\common\model;
class Taskgroup extends Base{
    function taskoptionspc(){
        return $this->hasMany('taskoptions','group_id')->field('id,name,title,action,group_id,params')->where(['status'=>1,'pc'=>1])->order('sort,id');
    }
    // 移动端关联
    function taskoptionsphone(){
        return $this->hasMany('taskoptions','group_id')->field('id,name,title,action,group_id,icon,params')->where(['status'=>1,'phone'=>1])->order('sort,id');
    }
}
